<h1>Editing planet</h1>

<%= error_messages_for :planet %>

<% form_for(@planet) do |f| %>
  <p>
    <b>Name</b><br />
    <%= f.text_field :name %>
  </p>

  <p>
    <b>Diameter in kilometers</b><br />
    <%= f.text_field :diameter_in_kilometers %>
  </p>

  <p>
    <b>Kilograms</b><br />
    <%= f.text_field :kilograms %>
  </p>

  <p>
    <b>Average kilometers from sun</b><br />
    <%= f.text_field :average_kilometers_from_sun %>
  </p>

  <p>
    <%= f.submit "Update" %>
  </p>
<% end %>

<%= link_to 'Show', @planet %> |
<%= link_to 'Back', planets_path %>
